package com.jinfang.bankpractice.mapper;

import java.util.List;
import org.springframework.stereotype.Repository;
import com.jinfang.bankpractice.model.Record;
import org.apache.ibatis.annotations.Param;
public interface RecordMapper {

	
	
	/**
	 * 根据id查找
	 * @param id
	 * @return
	 */
	public Record getRecordById(long id);
	
	public Record getRecord(@Param("userid")long userid,@Param("course")int course);
	
	/**
	 * 插入一条新的记录
	 * @param Successkilled
	 * @return
	 */
	public int insertRecord(Record record);

	
	/**
	 * 更新一条记录
	 * @param Successkilled
	 * @return 如果返回值》=1，更新成功，否则失败
	 */
	public int updateRecord(Record record);





}
